package org.github.manx98.jlibhac.tools.ncm;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/6 18:34
 */
public enum ContentType {
    Meta,
    Program,
    Data,
    Control,
    HtmlDocument,
    LegalInformation,
    DeltaFragment;
    public static ContentType valueOf(byte value) {
        for (ContentType contentType : values()) {
            if(contentType.ordinal() == value) return contentType;
        }
        throw new IllegalArgumentException("Invalid content type: " + value);
    }
}
